package cn.devzyh.oms.coms.api.order.entity;

import cn.devzyh.oms.common.mybatis.domain.BaseModel;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;

/**
 * 销售订单明细
 *
 * @author devzyh
 * @date 2024-03-06
 */
@TableName("order_detail")
@Data
@EqualsAndHashCode(callSuper = true)
public class OrderDetail extends BaseModel<OrderDetail> {

	/**
	 * ID
	 */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
	
	/**
	 * 单头ID
	 */
    private Long orderId;
	
	/**
	 * SKU编码
	 */
    private String skuCode;
	
	/**
	 * SKU名称
	 */
    private String skuName;
	
	/**
	 * 来源行号
	 */
    private String sourceLineCode;
	
	/**
	 * 购买数量
	 */
    private Integer quantity;
	
	/**
	 * 关联库存
	 */
    private Long stockId;

}